<div class="cart-title">Your Cart</div>
<% if !@cart.nil? && !@cart.items.empty? %>
<div id="cart_content">
<table>
<%= render(:partial => "cart_item" , :collection => cart.items) %>
<tr class="total-line">
<td colspan="2">Total</td>
<td class="total-cell"><%= number_to_currency(cart.total_price) %></td>
</tr>
</table>
<%= button_to "Checkout" , :action => :checkout %>
<% form_remote_tag :url => {:action => :empty_cart } do %>
<%= submit_tag "Empy cart" %>
</div>
<% end %>
<% end %>
